package com.zbkj.admin.controller.merchant;

import com.zbkj.common.response.MerchantStoreQrcodeInfoResponse;
import com.zbkj.common.result.CommonResult;
import com.zbkj.service.service.MerchantService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 店铺信息服务 前端控制器
 +----------------------------------------------------------------------
 */
@Slf4j
@RestController
@RequestMapping("api/admin/merchant/store")
@Api(tags = "店铺信息服务", description = "店铺/门店信息服务")
public class StoreController {

    @Autowired
    private MerchantService merchantService;

    @ApiOperation(value = "店铺二维码内容")
    @RequestMapping(value = "/qrcode/info", method = RequestMethod.GET)
    public CommonResult<MerchantStoreQrcodeInfoResponse> getQrcodeInfo() {
        return CommonResult.success(merchantService.getQrcodeInfo());
    }

}



